package com.util.vmwareops;
public class ResourceInfoVersionController {
    private static String currentVersion = "";
    private static String latestVersion = "";
    public static String getCurrentVersion() {
        return currentVersion;
    }
    public synchronized static String getLatestVersion() {
        if(latestVersion == "") {
            latestVersion = MyUtils.getUUID("");
        }
        return latestVersion;
    }
    public synchronized static void resetCurrentVersion() {
        if(latestVersion != null && latestVersion != "") {
            currentVersion = latestVersion;
            latestVersion = "";
        }
    }
}
